// data.ts
const homeChildrenRoutes = [
    //菜单页面 需要加title  根据title渲染左侧菜单
    {
      path: 'page',
      name: 'page1',
      meta: {
          title: '一级菜单',
      },
      children: [
        {
            path: 'page11',
            name: 'page11',
            component: () => import("../view/system/page/page11.vue"),
            meta: {
                title:'子页面11',
                parentPath: '/page'
            }
        },
        {
            path: 'detail',
            name: 'detail',
            component: () => import("../view/system/page/page.vue")
        }
      ]
    },
    {
        path: 'page2',
        name: 'page2',
        component: () => import("../view/system/page/page2.vue"),
        meta: {
            title: '一级菜单2',
        }
      }
    // 这里可以继续添加其他子路由
  ];
  
  export default homeChildrenRoutes;